package com.libinshen.wxpay.quartz.controller;

public class JobLogController {

    public static void main(String[] args) {

//        JobDetail jobDetail = JobBuilder.newJob(MyJob.class)
//                .withIdentity("job1", "group1")
//                .usingJobData("job", "jobDetal")
//                .usingJobData("name", "我爱你")
//                .build();
//
//        int count = 0;
//        SimpleTrigger simpleTrigger = TriggerBuilder.newTrigger()
//                .withIdentity("trigger1", "trigger1")
//                .usingJobData("job", "jobDetal")
//                .usingJobData("name", "我爱你，老婆")
//                .usingJobData("count", count)
//                .startNow()
//                .withSchedule(SimpleScheduleBuilder.simpleSchedule().withIntervalInSeconds(1)
//                        .repeatForever())
//                .build();
//
//        try {
//            Scheduler scheduler = StdSchedulerFactory.getDefaultScheduler();
//            scheduler.scheduleJob(jobDetail, simpleTrigger);
//            scheduler.start();
//        } catch (SchedulerException e) {
//            e.printStackTrace();
//        }
    }
}
